﻿using System;

namespace IQIGame.Onigao.GamePlay
{
    public enum EAttributeType
    {
        Min = 0,
        Hp,
        MaxHp,
        Atk,
        Def,
        Speed,
        MoveRange,
        SP,
        InitSP,
        MaxSP,
        Hit,
        Dodge,
        Crit,
        CritDamage,
        EffectHit,
        EffectResist,
        DamageModify,
        HurtModify,

        // 系统用百分比属性 不参与战斗计算
        MaxHp_Percent,
        Atk_Percent,
        Def_Percent,
        Speed_Percent,

        Cure, // 治疗效果
        Cured, // 受到治疗效果
        
        Max,
    }

    [Flags]
    public enum EAttributeTypeFlag
    {
        Min = 0,
        Hp = 1 << EAttributeType.Hp,
        MaxHp = 1 << EAttributeType.MaxHp,
        Atk = 1 << EAttributeType.Atk,
        Def = 1 << EAttributeType.Def,
        Speed = 1 << EAttributeType.Speed,
        MoveRange = 1 << EAttributeType.MoveRange,
        SP = 1 << EAttributeType.SP,
        InitSP = 1 << EAttributeType.InitSP,
        MaxSP = 1 << EAttributeType.MaxSP,
        Hit = 1 << EAttributeType.Hit,
        Dodge = 1 << EAttributeType.Dodge,
        Crit = 1 << EAttributeType.Crit,
        CritDamage = 1 << EAttributeType.CritDamage,
        EffectHit = 1 << EAttributeType.EffectHit,
        EffectResist = 1 << EAttributeType.EffectResist,
        DamageModify = 1 << EAttributeType.DamageModify,
        HurtModify = 1 << EAttributeType.HurtModify,

        MaxHp_Percent = 1 << EAttributeType.MaxHp_Percent,
        Atk_Percent = 1 << EAttributeType.Atk_Percent,
        Def_Percent = 1 << EAttributeType.Def_Percent,
        Speed_Percent = 1 << EAttributeType.Speed_Percent,
        Max,
    }
}